cpdebugflags

SoftwareShield ClientProtector COM Component > ClientProtector (SSCProtector) Reference > CPDEBUGFLAGS

## CPDEBUGFLAGS

The CPDEBUGFLAGS enumeration is used in the StartUp ClientProtector function call in order to control debug output when linking to the debug ClientProtector COM server. (SSCProtD.dll)

enum CPDEBUGFLAGS
{

DBG_ODS_COARSE = 1,
DBG_ODS_DETAIL = 3,
DBG_LOG_COARSE = 4,
DBG_LOG_DETAIL = 12,
DBG_DLG_COARSE = 16,
DBG_DLG_DETAIL = 48,
DBG_ALL_COARSE = 21,
DBG_ALL_DETAIL = 63,

DBG_SUPPRESS_WARNING_DLG = 512

};

The values are in four different categories:

1. Output Debug String types (DBG_ODS_xxx)

2. Log File types (DBG_LOG_xxx)

3. Message Dialog types (DBG_DLG_xxx)

4. All types combined (DBG_ALL_xxx)

Each type has two values corresponding to "coarse" or "detailed" output.

These values may be combined with bit-wise OR operations to achieve various debug output levels with different methods.

DBG_SUPPRESS_WARNING_DLG Combine this flag with any others you may need to use when you are debugging a non-interactive application (such as an NT service) or a web-application (server side). Non-interactive applications may hang or crash if a COM component created from inside them attempts to show a dialog. The Debug ClientProtector server shows a warning dialog by default when it is accessed to remind you that you are linking to the debug version (see: Controlling Debug Output) Use this flag to suppress this warning dialog.

Debug flags are ignored when linking to the release server (SSCProt.dll).

For more information about outputting debug messages using these flags, see: Controlling Debug Output.